<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config = array(
	'shahed/save' => array(
		array(
			'field' => 'name',
			'label' => 'lang:name',
			'rules' => 'required'
		),
		array(
			'field' => 'email',
			'label' => 'lang:email',
			'rules' => 'required'
		)
	),
	'shahed/update' => array(
		array(
			'field' => 'name',
			'label' => 'lang:name',
			'rules' => 'required'
		),
		array(
			'field' => 'email',
			'label' => 'lang:email',
			'rules' => 'required'
		)
	),
	'welcome/signup' => array(
		array(
			'field' => 'username',
			'label' => 'Username',
			'rules' => 'required|callback_userNameExists'
		 ),
		array(
			'field' => 'password',
			'label' => 'Password',
			'rules' => 'required'
		 ),
		array(
			'field' => 'passconf',
			'label' => 'PasswordConfirmation',
			'rules' => 'required'
		 ),
		array(
			'field' => 'email',
			'label' => 'Email',
			'rules' => 'required|valid_email'
		 )
	)
);
